package com.rental.model.entity.house;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-01-16
 */
@Data
@TableName("rental_hourse")
@Schema( description="RentalHourse对象")
public class RentalHourse implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema( description
 = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema( description
 = "用户表Id")
    private Long uid;

    @Schema( description
 = "经度")
    private BigDecimal longitude;

    @Schema( description
 = "纬度")
    private BigDecimal latitude;

    @Schema( description
 = "房子照片")
    private String imagesUrl;

    @Schema( description
 = "房子视频")
    private String videoUrl;

    @Schema( description
 = "邻近车站")
    private String nearbyStation;

    @Schema( description
 = "房屋户型")
    private String structure;

    @Schema( description
 = "房屋情况与优点")
    private String introduce;

    @Schema( description
 = "租金")
    private BigDecimal rent;

    @Schema( description
 = "租期")
    private Integer tenancyTerm;

    @Schema( description
 = "支付方式")
    private String payType;

    @Schema( description
 = "租客的要求")
    private String renterRequire;

    @Schema( description
 = "房东情况")
    private String Landlord;

    @Schema( description
 = "联系微信")
    private String wechat;

    @Schema( description
 = "联系手机号")
    private String phone;

    @Schema( description
 = "有效时间")
    private Date endTime;

    @Schema( description
 = "标题")
    private String title;

    @Schema( description
 = "参观时间")
    private String visitingTime;

    @Schema( description
 = "创建时间")
    private Date createTime;

    @Schema( description
 = "修改时间")
    private Date updateTime;

    @Schema( description = "浏览次数")
    private Integer viewCount;

    @Schema(description = "房屋地址")
    private String location;

    @Schema(description = "上架状态 0：未上架 1：已上架")
    private Integer state;

    @Schema( description = "删除状态 0：未删除 1：已删除")
    @TableLogic(value = "0",delval = "1")
    private Integer isDelete;

    @Schema( description = "举报次数")
    private Integer accusation;
}
